﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BI.CF.Model;
using BI.CF.BLL;
using BI.CF.DAL;

namespace BackStage.Hand
{
    /// <summary>
    /// Record 的摘要说明
    /// </summary>
    public class Record : IHttpHandler
    {
        Record_BLL bll = new Record_BLL();
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string UserName = context.Request["UserName"];
            int PageIndex = int.Parse(context.Request["PageIndex"]);
            int PageSize = int.Parse(context.Request["PageSize"]);
            BI.CF.PageList.Pager<Records> li = bll.GetRecordShow(UserName,PageIndex,PageSize);
            string json = JsonHelper.JsonSerializer<BI.CF.PageList.Pager<Records>>(li);
            context.Response.Write(json);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}